package com.test.service;

import java.util.List;

import com.test.dao.OrdersDAO;
import com.test.entity.Orders;

public class OrdersService {
	private OrdersDAO ordersDAO;

	public String getStringDate() {
		return ordersDAO.getStringDate();
	}

	public String Randoms() {
		return ordersDAO.Randoms();
	}

	public void saveOrders(Orders orders) {
		ordersDAO.saveOrders(orders);
	}

	public List<Orders> queryorderdetail(String nostring) {
		return ordersDAO.queryorderdetail(nostring);
	}

	public List<Orders> queryAll(int pageSize, int curpage, Integer id) {
		return ordersDAO.queryAll(pageSize, curpage, id);
	}

	public List<Orders> queryAll2(int pageSize, int curpage) {
		return ordersDAO.queryAll2(pageSize, curpage);
	}

	public Object queryRecordAmount() {
		return ordersDAO.queryRecordAmount();
	}

	public int queryRecordAmount(Integer id) {
		return ordersDAO.queryRecordAmount(id);
	}

	public OrdersDAO getOrdersDAO() {
		return ordersDAO;
	}

	public void setOrdersDAO(OrdersDAO ordersDAO) {
		this.ordersDAO = ordersDAO;
	}

}
